home *** CD-ROM | disk | FTP | other *** search
/ Hacker's Arsenal - The Cutting Edge of Hacking / Hacker's Arsenal - The Cutting Edge of Hacking.iso / texts / misc / HackYahoo.txt < prev    next >
Encoding:
Text File  |  2001-07-11  |  3.5 KB  |  72 lines

  1. I spent one morning looking at Yahoo's mail security ...here's what I've found and how I did it.....
  2.  
  3. I created an account whilst dialed into Pipex. I logged out and closed my browser. On reopening the browser I pasted in the following URL:
  4.  
  5. ht tp://mail.yahoo.com/py/ymTop.py?y=1
  6.  
  7. and this took me back to my account with out any error messages or prompts for a login. I then closed my browser, disconnected from Pipex and dialed 
  8. into Globalnet. When connected I opened my browser and pasted th e same URL:
  9. And was taken back to my mail-box! This made me think there must be a cookie controlling this...sure enough there it was. (1 of 3)
  10.  
  11. One, the user@mail.yahoo.com cookie in the rough looks like this :
  12.  
  13.  
  14. YM.Login
  15. id%3dreIvr96lzVC4g%26s id%3dtMZu7cDVk5V9e%250a%26ts%3dX%2588B%2540
  16. %25f5%2517%25cd%2599%25dc%253f%259c%25c1Y
  17. mail.yahoo.com/
  18. 0
  19. 4227368448
  20.  
  21. 29309637
  22. 2474945552
  23. 29188238
  24. *
  25. YM.Pref
  26. farm%3d1%26silo%3dms4%26
  27. email%3dmail-name%40yahoo.com%26head%3dbrief %26fwd%3dattach%26fontsz
  28. %3dnormal%26msgwidth%3d72%26order%3ddown%26inc%3d50%26goto
  29. %3dmsgmail.yahoo.com/
  30. 0422736844829309637247514555229188238* 
  31. but with all the Hex stripped out it slightly more managable:
  32.  
  33. [YM.Login]
  34. id=reIvr96lzVC4g &< br>sid=tMZu7cDVk5V9e%0a &
  35. ts=X%88B%40%f5%17%cd%99%dc%3f%9c%c1Y
  36. mail.yahoo.com/0422736844829309637247494555229188238*
  37.  
  38.  
  39. [YM.Pref]
  40. farm=1 & silo=ms4 & email=mail-name@yahoo.com & 
  41. head=brief & fwd=attach & fontsz=normal & 
  42. msgwidth=72 & o rder=down & inc=50 & goto=msg
  43. mail.yahoo.com/
  44. 0
  45. 4227368448
  46. 29309637
  47. 2475145552
  48. 29188238
  49. *
  50.  
  51.  
  52. After being logged off for around an hour I reconnected to the Internet and pasted that URL again and got back in......this made me suspic ious. I clicked on exit and checked the whole "exit" document. Down the bottom I found a link :
  53.  
  54. Log off completely.
  55.  
  56.  
  57. Nice of them to warn you and put it way down the bottom. Most new users will not realise that the log off process is a double actio n...if you log off "completely" then the cookie is removed from the Temporay Internet Files directory.
  58.  
  59. What does all this mean ?
  60. Security wise if you can get physical access to a machine that someone has used to collect their mail and not done the d ouble log off then you can 
  61. access their account perhaps ad infinitum. (I don't know yet if the cookie has a TTL so to speak.) In practice this means you'll be cracking a friend's,
  62. work (or school) colleague's or family member's account. Good for s nooping on your girlfriend's e-mail activities too.... . Unfortunately
  63. you can't copy it to a floppy disk and save it in your own computer's Temporary Internet Files directory because of the ":" ...What you'd need to do is copy it to a flo ppy anyway...so you've got what info you need...then, now here's the complicated part :
  64.  
  65. Set your own PC up as a webserver as well as a DNS server (if you've got NT Server your laughing). Create a DNS entry for mail.yahoo.com and use the loopback (127.0. 0.1). Then create an htm file with the necessary script to impart a cookie with this same 
  66. information. Connect to mail.yahoo.com (you'll actually loopback) and the cookie will be downloaded to the Temp Net files Directory....
  67.  
  68. A big hassle to do...pr obably easier to watch them type their password ;o) but it's knowing how it can be done..that's the important thing. Btw, just for any of you jokers out there...I've modified the security identifier and the e-mail account name etc....I'm not gonna give yo u a copy of my real cookie then tell you how to exploit it...get real ;o) There'll be other ways to crack yahoo, of course....this is just my offering on the matter...for now anyway.
  69.  
  70.  
  71.  
  72.